<!--Header Grey Strts-->

<div class="header_grey">
	<div class="width-990" style="padding: 10px">

		<div class="left">
			<a href="javascript:void(0);" class="header_text" onclick="document.getElementById('div_loggedin').style.display = 'block';" style="float: left; padding-top: 10px;"><?php 
			if(isset($name)) {
				echo 'Hello ' . ucfirst($name) . '&nbsp;' . '</a>';
			} else {
				?> <?php if (isset($curUrl) && $curUrl == 'registration.php') { ?> <?php } else { ?>
				<a href="/registration.php" class="header_text" Emailfgfg
				style="float: left; padding-top: 10px;">Join Now &nbsp;|&nbsp;</a> <?php } ?>
				<a href="javascript:void(0);" class="header_text"
				style="float: left; padding-top: 10px;"
				onclick="document.getElementById('div_name2').style.display = '';"> Login </a> <?php } ?>
		
		</div>
		
		<div id="div_loggedin" style="display:none;margin: 28px -4px 0px 0px; padding: 5px; border: 1px solid #aaa; height: 150px; width: 150px; position: absolute; background-color: #dedcdc;" >
			<div>
				<a
					onclick="document.getElementById('div_loggedin').style.display = 'none'"
					href="javascript:void(0);" style="text-decoration: none; border-bottom: 0px dotted blue; float: right; margin-top: -3px;"><img
					src="/public/images/close.png" /> </a>
			</div>
			<a href="/" class="header_text" style="text-decoration:underline;">
				<div class="divl">My Dex</div>
			</a>
			<a href="/logout.php" class="header_text" style="text-decoration:underline;">
				<div class="divl" style="margin-top:5px;">Logout</div>
			</a>
		</div>
		
		<div id="div_name2" style="display: <?php if (isset($regMsg)) {
                 echo 'block';
             } else {
                 echo 'none';
             }
             ?>; margin: 28px -4px 0px 1px; padding: 5px; border: 1px solid #aaa; height: 122px; width: 539px; position: absolute; background-color: #dedcdc;">
			<span id="userid">&nbsp;</span>
			<div style="margin-top: -19px;">
				<a
					onclick="document.getElementById('div_name2').style.display = 'none';
                               "
					href="javascript:void(0);"
					style="text-decoration: none; border-bottom: 0px dotted blue; float: right; margin-top: -3px;"><img
					src="/public/images/close.png" /> </a>
			</div>
			<div style="padding: 13px;">
				<?php if (isset($regMsg)) { ?>
				<div>
					<h3
						style="padding: 0; margin: 0; font-size: 18px; line-height: 30px;">
						<?php
						if (isset($regMsg)) {
							echo $regMsg;
						}
						?>
					</h3>
					<?php
					if (isset($regMsg1)) {
						echo $regMsg1;
					}
					?>
				</div>
				<?php } else { ?>
				<form action="/home.php" method="post" name="Userlogin"
					onSubmit="return userLoginbyheader();">
					<div style="margin-top: -1px;">
						<table>
							<tr>
								<td><input type="radio" value="User" name="User" id="User1"
									onclick="userjoinheader();" /><b>User</b> <input type="radio"
									value="Artist" name="Artist" id="Artist1"
									onclick="userjoinheader();" style="margin-left: 52px;" /><b>Artist</b>

								</td>
								<td><input type="radio" value="Partner" name="Partner"
									id="Partner1" onclick="userjoinheader();"
									style="margin-left: -33px;" /><b>Partner</b> <input
									type="radio" value="Advertiser" name="Advertiser"
									id="Advertise1" onclick="userjoinheader();"
									style="margin-left: 29px;" /><b>Advertisers</b></td>
							</tr>
							<tr>
								<td><center>
										<input type="text" placeholder="  Email" name="txtEmail"
											id="loginuser" class="txtbx250 input"
											onkeyup="userjoinheader();"
											value="<?php if (isset($_COOKIE['userid'])) echo $_COOKIE['userid']; ?>" />
									</center>
									<center id="ermail">&nbsp;</center></td>

								<td>
									<center>
										<input type="password" placeholder="  Password" name="txtPass"
											id="loginpass" class="txtbx250 input"
											onkeyup="userjoinheader();"
											value="<?php if (isset($_COOKIE['password'])) echo $_COOKIE['password']; ?>" />
										<center>
											<center id="erPass" style="margin-top: -4px;">&nbsp;</center>
								
								</td>
							</tr>
							<tr>
								<td></div> <input type="checkbox" name="remember" value=""
									style="float: left;" /> <lable
										style="float:left;color:#494949;">Remember Me &nbsp;&nbsp;</lable>
									<lable style="float:right"> <a href="/userForgetPassword.php"
										style="color: #494949;">Forget Password&nbsp;</a></lable></td>
								<td><input type="submit" name="Login" value="Login"
									class="srch3 input"
									style="border: none; background-color: #ac0000; height: 30px; width: 250px; margin-top: -9px;" />
								</td>
							</tr>

						</table>
					</div>


					<div class="spacer-15"></div>
				</form>
				<?php } ?>
			</div>
		</div>

<div class="right" style="padding-top: 10px;">
			<a href="/post-free-ads" class="header_text" style="padding-top: 10px;">
				Post a Free Ad </a>|<a href="" class="header_text"
				style="padding-top: 10px;"> Become a Partner</a>
</div>
<div class="clr-both"></div>
</div>
</div>
<div class="clr-both"></div>
<!--Header Grey Ends-->
<!--Header Yellow Strts-->
<div class="header_yellow">
	<div class="width-990">
		<div class="pddng_top_60 left">
			<a href="/" style="text-decoration: none"><span class="Artdex_txt1">Art</span><span
				class="Artdex_txt2">Dex</span> </a>
		</div>
		<!--Search Box Starts-->
		<div class="right mr">
			<form action="#" method="#">
				<input type="text" name="Search" class="textb1 mrgn_60 left">
				<div class="left drop1 mrgn_60">
					<div class="drop2 mrgn_tr"
						onmouseout="document.getElementById('DDMenu').style.display = 'none';"
						onmouseover="findPosX2(this, 'DDMenu');
                                findPosY2(this, 'DDMenu');
                                document.getElementById('DDMenu').style.display = 'block';">
						<span class="srch2 padng2"> <a href="javascript:void(0);"
							class="srch2 padng2"
							onmouseout="document.getElementById('DDMenu').style.display = 'none';"
							onmouseover="findPosX2(this, 'DDMenu');
                                findPosY2(this, 'DDMenu');
                                document.getElementById('DDMenu').style.display = 'block';"
							id="City">Delhi</a>
						</span>
						<div class="mrgn_dr">
							<img src="/public/images/drop_arrw2.png" />
						</div>
					</div>
				</div>
				<div class="right drop11 mrgn_60">
					<input type="button" name="Search2" value="Search" class="srch"
						style="border: none; width: 110px; background-color: #dedcdc;" />
				</div>
				<div class="clr-both"></div>
			</form>
		</div>
		<!--Search Box Ends-->
		<div class="clr-both"></div>
		<ul class="mrgin">
			<li><a href="#" class="active">Artist</a></li>
			<li><a href="#" class="link-nav">People</a></li>
			<li><a href="#" class="link-nav">Advance Search</a></li>
		</ul>
	</div>
</div>

<!--Header Yellow Ends-->
<div class="spacer-15"></div>
